dofile ("libKeyboard.lua")

Keyboard.init (1, 5, 5)

while not Keys.newPress.Start do
   
  Controls.read()
  
  startDrawing()
    
    Keyboard.draw (1)
    
    Keyboard.drawTextWithCur (1, SCREEN_UP, 5, 5, SCREEN_WIDTH-5, SCREEN_HEIGHT-5)
    
    local col = tostring (Keyboard.column (1))
    local line = tostring (Keyboard.line (1))
    
    screen.print (SCREEN_DOWN, 192, 5, "Column : "..col)
    screen.print (SCREEN_DOWN, 192, 11, "Line : "..line)
    
  stopDrawing()

end

Keyboard.clear (1)

